<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUserAuxiliariesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('user_auxiliaries', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('user_id');
            $table->string('phone')->comment('手机号')->unique();
            $table->string('email')->comment('邮箱')->unique();
            $table->string('wechat')->comment('微信');
            $table->string('qq')->comment('QQ');
            $table->string('weibo')->comment('微博');
            $table->string('github')->comment('github');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('user_auxiliaries');
    }
}
